package com.example.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class UtService {
    @Autowired
    private UserService userService;

    private boolean runUT(int idx) {
        Map<String, Integer> orderDetails = userService.listOrderDetails(idx);
        if (orderDetails.containsKey(userService.getUsername())) {
            return true;
        }
        return false;
    }
}
